package cn.tedu._06springaop.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestCalculator {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext("cn.tedu._06springaop");
        CalculatorImpl bean = context.getBean(CalculatorImpl.class);
        bean.add(10,20);
        bean.sub(10,20);
        bean.mul(10,20);
        bean.div(20,10);
    }
}
